<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&#32;</xsl:text>
</xsl:template>
<xsl:template match='quote' name='quote'>
<xsl:text disable-output-escaping='yes'>&gt;</xsl:text>
</xsl:template>
<xsl:template match='crlf' name='crlf'>
<xsl:text disable-output-escaping='yes'>&#10;</xsl:text>
</xsl:template>

<xsl:include href='../xsl.include.main.xsl'/>

<xsl:template match="message">

<center>
Se ritieni che il testo di questo messaggio sia offensivo, volgare,<br/>o che sia catolagabile come spamming indesiderato, per favore segnalacelo.<br/>
<p/>
<b>Confermando la segnalazione ad abuse@goparty.it, <br/>autorizzi i gestori del servizio a leggere il contenuto di questo messaggio.</b>
<p/>
</center>

<TABLE class="body" cellSpacing="0" cellPadding="0"  border="0" >
	<TBODY>
		<TR>
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-tl.gif" width="8" border="0"/></TD>
			<TD width="100%" colspan="2" background="/imgs/pvts/box-t-back.gif"  bgcolor="white"><IMG height="8" src="/imgs/pvts/box-t.gif" width="10" border="0"/></TD>
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-tr.gif" width="8" border="0"/></TD>
		</TR>
		<TR vAlign="top">
			<TD width="8" background="/imgs/pvts/box-l-back.gif" bgcolor="white"></TD>
			<TD width="60px" align="left" style="padding:5px; height:20px; border-bottom: 1px solid #EBE9E4; text-align:right; padding-right:10px;" bgcolor="white">
				Da:
			</TD>
			<TD  align="left" style="padding:5px; border-bottom: 1px solid #EBE9E4;" bgcolor="white">
				<div style="float:right; font-size:0.9em;"><xsl:value-of select="substring(@sortdatetime,9,2)"/>-<xsl:value-of select="substring(@sortdatetime,6,2)"/>-<xsl:value-of select="substring(@sortdatetime,1,4)"/>&#160;<xsl:value-of select="substring(@sortdatetime,12,8)"/></div>
				<xsl:choose>
				<xsl:when test='from/contact/@sexid &gt; 0'>
					<xsl:call-template name="user">
						<xsl:with-param name="status" select="from/contact/@status"/>
						<xsl:with-param name="sexid" select="from/contact/@sexid"/>
						<xsl:with-param name="certified" select="from/contact/@certified"/>
						<xsl:with-param name="userid" select="from/contact/@userid"/>
						<xsl:with-param name="nick" select="from/contact/@nick"/>
					</xsl:call-template>
					&#160;&lt;<xsl:value-of select="from/contact/@email"/>&gt;
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="from/contact/@name"/>
					&#160;&lt;<xsl:value-of select="from/contact/@email"/>&gt;
				</xsl:otherwise>
				</xsl:choose>
			</TD>
			<TD width="8" background="/imgs/pvts/box-r.gif" bgcolor="white"><IMG height="10" src="/imgs/pvts/box-r.gif" width="8" border="0"/></TD>
		</TR>
<!-- A -->
		<TR vAlign="top">
			<TD width="8" background="/imgs/pvts/box-l-back.gif" bgcolor="white"></TD>
			<TD width="60px" align="left" style="padding:5px; height:20px; border-bottom: 1px solid #EBE9E4; text-align:right; padding-right:10px;" bgcolor="white">
				A:
			</TD>
			<TD  align="left" style="padding:5px; border-bottom: 1px solid #EBE9E4;" bgcolor="white">
			<xsl:for-each select="to/contact">		
				<xsl:choose>
				<xsl:when test='@sexid &gt; 0'>
					<xsl:call-template name="user">
						<xsl:with-param name="status" select="@status"/>
						<xsl:with-param name="sexid" select="@sexid"/>
						<xsl:with-param name="certified" select="@certified"/>
						<xsl:with-param name="userid" select="@userid"/>
						<xsl:with-param name="nick" select="@nick"/>
					</xsl:call-template>
					&#160;&lt;<xsl:value-of select="@email"/>&gt;,
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="@name"/>
					&#160;&lt;<xsl:value-of select="@email"/>&gt;,
				</xsl:otherwise>
				</xsl:choose>
			</xsl:for-each>		

			</TD>
			<TD width="8" background="/imgs/pvts/box-r.gif" bgcolor="white"><IMG height="10" src="/imgs/pvts/box-r.gif" width="8" border="0"/></TD>
		</TR>
<!-- CC -->
		<xsl:if test="count(cc/contact) &gt; 0">
		<TR vAlign="top">
			<TD width="8" background="/imgs/pvts/box-l-back.gif" bgcolor="white"></TD>
			<TD width="60px" align="left" style="padding:5px; height:20px; border-bottom: 1px solid #EBE9E4; text-align:right; padding-right:10px;" bgcolor="white">
				CC:
			</TD>
			<TD  align="left" style="padding:5px; border-bottom: 1px solid #EBE9E4;" bgcolor="white">
			<xsl:for-each select="cc/contact">		
				<xsl:choose>
				<xsl:when test='@sexid &gt; 0'>
					<xsl:call-template name="user">
						<xsl:with-param name="status" select="@status"/>
						<xsl:with-param name="sexid" select="@sexid"/>
						<xsl:with-param name="certified" select="@certified"/>
						<xsl:with-param name="userid" select="@userid"/>
						<xsl:with-param name="nick" select="@nick"/>
					</xsl:call-template>
					&#160;&lt;<xsl:value-of select="@email"/>&gt;,
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="@name"/>
					&#160;&lt;<xsl:value-of select="@email"/>&gt;,
				</xsl:otherwise>
				</xsl:choose>
			</xsl:for-each>		

			</TD>
			<TD width="8" background="/imgs/pvts/box-r.gif" bgcolor="white"><IMG height="10" src="/imgs/pvts/box-r.gif" width="8" border="0"/></TD>
		</TR>
		</xsl:if>
<!-- OGGETTO -->
		<TR vAlign="top">
			<TD width="8" background="/imgs/pvts/box-l-back.gif" bgcolor="white"></TD>
			<TD width="60px" valign="middle" style="padding:5px; height:30px; border-bottom: 1px solid #EBE9E4; text-align:right; padding-right:10px;" bgcolor="white">
				<b>Oggetto:</b>
			</TD>
			<TD  align="left" valign="middle" style="padding:5px; border-bottom: 1px solid #EBE9E4; font-weight:bold;" bgcolor="white">
				<xsl:value-of select="subject"/>
			</TD>
			<TD width="8" background="/imgs/pvts/box-r.gif" bgcolor="white"><IMG height="10" src="/imgs/pvts/box-r.gif" width="8" border="0"/></TD>
		</TR>
<!-- BODY -->
		<TR vAlign="top">
			<TD width="8" background="/imgs/pvts/box-l-back.gif" bgcolor="white"></TD>
			<TD width="100%" colspan="2" style="padding:2px; border-bottom: 1px solid #666666; text-align:left; padding:10px;" bgcolor="white">
				<xsl:call-template name="lf2br">
				<xsl:with-param name="text" select="body"/>
				</xsl:call-template>
			</TD>
			<TD width="8" background="/imgs/pvts/box-r.gif" bgcolor="white"><IMG height="10" src="/imgs/pvts/box-r.gif" width="8" border="0"/></TD>
		</TR>
<!-- REPLY, TRASH, ABUSE, ETC... -->
<form name="reply" METHOD="POST" action="/mailbox/IM.mailboxWrite.aspx">
	<INPUT TYPE="hidden" NAME="senderName" value="{to/contact/@name}"></INPUT>
	<INPUT TYPE="hidden" NAME="senderEmail" value="{to/contact/@email}"></INPUT>

	<input type="hidden" value="replyWithPost" name="replyWith"/>
	<input type="hidden" value="" name="replyType" />
	<input type="hidden" value="{/message/@msgid}" name="replyMsgId" />
	<input type="hidden" value="{/message/@folder}" name="replyMsgFolder" />
	<input type="hidden" value="abuse@goparty.it" name="TA.TO"/>
	<TEXTAREA id="TA.SUBJECT" name="TA.SUBJECT" rows="2" cols="45" WRAP="SOFT" style="position:absolute; visibility:hidden; z-index:1; height:3em;"><xsl:value-of select="subject"/></TEXTAREA>
	<TEXTAREA id="body" name="TA.BODY" rows="2" cols="75" WRAP="SOFT" style="position:absolute; visibility:hidden; z-index:1; height:10em;"><xsl:call-template name="crlf"/><xsl:call-template name="crlf"/><xsl:call-template name="crlf"/>---Messaggio originale di &lt;<xsl:value-of select="from/contact/@email"/>&gt;---<xsl:call-template name="crlf"/>---il <xsl:value-of select="substring(@sortdatetime,9,2)"/>-<xsl:value-of select="substring(@sortdatetime,6,2)"/>-<xsl:value-of select="substring(@sortdatetime,1,4)"/>&#160;<xsl:value-of select="substring(@sortdatetime,12,8)"/>---<xsl:call-template name="crlf"/>
	<xsl:value-of select="body"/>---Fine messaggio originale---
	</TEXTAREA>
		<TR vAlign="top">
			<TD width="8" background="/imgs/pvts/box-l-back.gif" bgcolor="white"></TD>
			<TD width="100%" colspan="2" style="padding:2px; padding:10px; text-align:center;" bgcolor="white">
			<input type="hidden" name="deleteList" value="{@msgid}"/>
			<input type="SUBMIT" style="width:8em; font-weight:bold;" name="ACTUALLYSEND" value="Invia ad abuse!"/>
			</TD>
			<TD width="8" background="/imgs/pvts/box-r.gif" bgcolor="white"><IMG height="10" src="/imgs/pvts/box-r.gif" width="8" border="0"/></TD>
		</TR>
</form>

		<TR>
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-bl.gif" width="8" border="0"/></TD>
			<TD width="100%" colspan="2" background="/imgs/pvts/box-b.gif" bgcolor="white"><IMG height="8" src="/imgs/pvts/box-b.gif" width="10" border="0"/></TD>
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-br.gif" width="8" border="0"/></TD>
		</TR>
	</TBODY>
</TABLE>

</xsl:template>

</xsl:stylesheet>